package logging

import (
	"encoding/xml"
	"time"

	"gopkg.in/mgo.v2/bson"
)

type LOGGINGS_XML struct {
	XMLName xml.Name `xml:"loggings" json:"-"`

	Loggings []LOGGING_XML `xml:"logging" json:"loggings"`
}

type LOGGING_XML struct {
	XMLName      xml.Name      `xml:"logging" json:"-" bson:"-"`
	Id           bson.ObjectId `xml:"id" json:"id" bson:"_id,omitempty"`
	Account      string        `xml:"account" json:"account" bson:"account,omitempty"`
	Robot        string        `xml:"robot" json:"robot" bson:"robot,omitempty"`
	Level        int           `xml:"level" json:"level" bson:"level,omitempty"`
	Description  string        `xml:"description" json:"description" bson:"description,omitempty"`
	Data         string        `xml:"data" json:"data" bson:"data,omitempty"`
	Ip           string        `xml:"ip" json:"ip" bson:"ip,omitempty"`
	Created_time time.Time     `xml:"created_time" json:"created_time" bson:"created_time,omitempty"`
}
